package com.uriuniv.service;

import java.util.List;

import com.uriuniv.dao.UniversityD;
import com.uriuniv.domain.University;

public class UniversityS {
	
	private UniversityD universityD;
	
	public void setUniversityD(UniversityD universityD) {
		this.universityD = universityD;
	}

	public List<University> getUnivList(){
		return universityD.getUnivList();
	}
	
	public University getUniversity(String universityName){
		
		University university = null; 
		
		try{
			university = universityD.getUniversity(universityName);
		}catch (Exception e) {
			
		}
		
		return university;
	}
	
}
